#include "StdAfx.h"
#include "CommonDataTable.h"
#include "StringUtility.h"

CommonDataTable::CommonDataTable(void)
{
}


CommonDataTable::~CommonDataTable(void)
{
}

void CommonDataTable::DataBind( const std::vector<std::wstring> &textLines )
{
	_data.clear();
	for (std::vector<std::wstring>::const_iterator cit = textLines.begin();
			cit != textLines.end(); ++cit)
	{
		_data.push_back(StringUtility::Split(*cit, '\t'));
	}
}

std::wstring CommonDataTable::GetCellValue( int rowIndex, int columIndex )
{
	return _data[rowIndex][columIndex];
}

